/*首页样式*/
body{
    min-height: 6000px;
}
.slider-nav {
    background-color: rgba(0,0,0,0.6);
    width: 234px;
    height: 420px;
    border: none;
}

.slider-nav .slider-li .name{
    color: #fff;
}

#page-all-nav .slider-nav{
    visibility: visible;
}

/*搜索框*/
.page-nav .search{
    float: right;
    position: relative;
    margin-top: 24px;
}
.page-nav .search .q{
    width: 227px;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-right: none;
    outline: none;
    line-height: 48px;
    padding-left: 8px;
    float: left;
}

.page-nav .search .tags{
    position: absolute;
    top: 17px;
    right: 58px;
    width: 130px;
    text-align: right;
}

.page-nav .search .tags span{
    line-height: 18px;
    padding: 0 5px;
    background: #eeeeee;
    font-size: 12px;
    /*改变光标*/
    cursor: pointer;
    color: #757575;
}

.page-nav .search .tags span:hover{
    background-color: #ff6700;
    color: #fff;
}

.page-nav .search .btn{
    width: 50px;
    height: 50px;
    border: 1px solid #e0e0e0;
    /*border-left: none;*/
    float: left;
    background: #fff url("../img/search.png") center center no-repeat;
    background-size: 20px 20px;
    cursor: pointer;
}

.page-nav .search .btn:hover{
    background-color: #ff6700;
    /*没有背景图*/
    /*background-image: url("../img/s");*/
    border-color: #ff6700;
}

.search:hover .q,
.search:hover .btn{
    border-color: #b0b0b0;
}

.search.active .q,
.search.active .btn{
    border-color: #ff6700;
}

.search .hot{
    width: 234px;
    border: 1px solid #ff6700;
    border-top: none;
    position: absolute;
    list-style: none;
    top: 50px;
    display: none;
}

.search .hot li{
    line-height: 30px;
}

.search .hot li a{
    padding: 0 15px;
    display: block;
}

.search .hot li:hover{
    background-color: #fafafa;
}

.search .hot li i{
    font-style: normal;
    float: right;
    color: #b0b0b0;
}
/*首页轮播*/
.idx-banner{
    height: 460px;
    overflow: hidden;
    position: relative;
}

.idx-banner ul{
    width: 20000px;
    height: 460px;

}
.idx-banner li{
    width: 1206px;
    height: 460px;
    float: left;
    /*border: 1px solid;*/
    list-style: none;
    position: relative;
}

.idx-banner img{
    /*display: none;*/
    width: 1206px;
    height: 460px;
}
.idx-banner li a{
    position: absolute;
    width: 972px;
    height: 460px;
    top: 0;
    right: 0;
}
.idx-banner .btn{
    position: absolute;
    width: 40px;
    height: 70px;
    background-image: url("../img/icon-slides.png");
    top: 50%;
    margin-top: -35px;
}
.idx-banner .btn-prev{
    background-position: -84px 0;
    left: 233px;
}
.idx-banner .btn-next{
    background-position: top right;
    right: 0;
}
.idx-banner .btn-prev:hover{
    background-position: top left;
}
.idx-banner .btn-next:hover{
    background-position: -41px 0;
}
.idx-banner .page{
    position: absolute;
    bottom: 30px;
    right: 0;
    z-index: 100;
    width: 100%;
    height: 10px;
    text-align: right;
    padding-right: 35px;
}
.idx-banner .page a{
    display: inline-block;
    margin: 0 5px;
    width: 6px;
    height: 6px;
    border: 2px solid #fff;
    border-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    background-color: #f5f5f5;
    background-color: rgba(0,0,0,0.4);
}
.idx-banner .page a:hover{
    background-color: #fff;
    background-color: rgba(255,255,255,0.4);
    border-color: #757575;
    border-color: rgba(0,0,0,0.4);
}

/*菜单和广告*/
.idx-menu-adv{
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}
.idx-menu-adv .menu{
    width: 214px;
    height: 145px;
    background-color: #5f5750;
    float: left;
    padding: 10px;
}
.idx-menu-adv .menu li{
    width: 71px;
    height: 61px;
    float: left;
    list-style: none;
    padding-top: 10px;
    text-align: center;
    color: #c8c5c3;
    position: relative;
}
.idx-menu-adv .menu li img{
    height: 24px;
    width: 24px;
}
.idx-menu-adv .menu li span{
    display: block;
    margin-top: 4px;
}
/*伪类写法不懂*/
/*todo*/
.idx-menu-adv .menu .bb:before{
    content: "";
    display: block;
    width: 61px;
    height: 1px;
    background-color: #655d56;
    /*background-color: red;*/
    position: absolute;
    left: 5px;
    bottom: 0;
}
.idx-menu-adv .menu .br:after{
    content: "";
    display: block;
    width: 1px;
    height: 61px;
    background-color: #655d56;
    /*background-color: red;*/
    position: absolute;
    right: 0;
    top: 5px;
}
.idx-menu-adv .menu li:hover{
    color: #fff;
}
.idx-menu-adv .pic{
    display: block;
    width: 304px;
    height: 165px;
    margin-left: 20px;
    float: left;
}

.idx-menu-adv .pic img{
    display: block;
    width: 304px;
    height: 165px;
}

/*广告图*/
.idx-adv img{
    width: 100%;
    display: block;
}
.idx-container .idx-adv{
    margin-top: 40px;
}

/*大内容区*/
.idx-container{
    background-color: #f5f5f5;
    /*background-color: red;*/
    margin-top: 40px;
    overflow: hidden;
}

.idx-title .tit{
    font-size: 22px;
    color: #666;
    line-height: 60px;
    margin-top: 20px;
/*    一个容器的第一个子元素的margin-top会转移给父元素的margin-top*/
/*    解决办法：1.给父元素加上：overflow: hidden;*/
/*    解决办法：2.第一个子元素的margin-top变成父元素的padding-top;*/
/*    解决办法：1.父元素加上border;*/
}
.idx-title{
    overflow: hidden;
}
.idx-title  .see-all{
    float: right;
    font-size: 16px;
    line-height: 60px;
    /*position: relative;*/
    /*top: 10px;*/
}

.idx-title  .see-all:hover{
    color: #ff6700;
}

.idx-container .col-5{
    width: 229px;
    /*height: 308px;*/
    margin-left: 15px;
    margin-bottom: 15px;
    float: left;
}
.idx-container .idx-box{
    height: 615px;
    clear: both;
}
.idx-container .idx-box{
    height: 616px;
    clear: both;
}
.idx-box .adv-box{
    float: left;
}
/*左边*/
.idx-box .adv-box.col-5{
    margin-left: 0;
}
.idx-container .col-5:hover{
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.idx-box .adv-box .single img{
    width: 229px;
    height: 615px;
    display: block;
}
/*右边*/
.idx-box .goods-box{
    float: right;
    width: 976px;
}
.idx-box .good-item{
    background-color: #fff;
    height: 300px;
    position: relative;
    text-align: center;
}
.idx-box .good-item .tags{
    width: 64px;
    height: 20px;
    left: 50%;
    margin-left: -32px;
    color: #fff;
    top: 0;
    position: absolute;
    text-align: center;
    line-height: 20px;
}
.idx-box .good-item .tags.new{
    background-color: #ff6700;
}
.idx-box .good-item .tags.discount{
    background-color: #e53935;
}
.idx-box .good-item .pic img{
    width: 160px;
    height: 160px;
    display: block;
    margin: 20px auto;
}
.idx-box .good-item .name,
.idx-box .good-item .desc{
    /*只展示一行，如果不加会自动换行*/
    white-space: nowrap;
    /*溢出隐藏，溢出的文字用点点点代替*/
    overflow: hidden;
    /*clip:当前对象内文本溢出时不显示省略标记(...),而是将溢出部分裁剪。
      ellipsis:当对象内文本一处时显示省略标记(...)。
      那就是配合
      overflow:hidden
      white-space:overflow;*/
    text-overflow: ellipsis;
    text-align: center;
    font-weight: normal;
    font-size: 13px;
}
.idx-box .good-item .name{
    width: 200px;
    margin: 0 auto 10px;
}
.idx-box .good-item .desc{
    width: 210px;
    color: #b0b0b0;
    margin: 0 auto;
}
.idx-box .good-item .price{
    margin-top: 13px;
}
.idx-box .good-item .price span{
    color: #ff6700;
}
.idx-box .good-item .price i{
    text-decoration: line-through;
    margin-left: 5px;
    color: #b0b0b0;
    font-style: normal;
}





